<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>

<style>	

</style>

	<div class="weui-cells" style="margin-bottom: 0px;padding-top:0px;margin-top: 0px">
		<c:if test="${empty accountDetails}">
		<div class="weui-panel_body" style="text-align: center;">
			<img alt="" src="<c:url value='/images/we/personCenter/null.png' />">
			<p style="margin: 5px 20px;color: #afafaf">您搜索结果为空哦，亲！</p>
		</div>
	  </c:if>
		<c:forEach var="accountDetail" items="${accountDetails}">
			<a class="weui-cell" href="<c:url value='/wechat/acc/myWealth/balance?id=${accountDetail.id}' />">
				<div class="weui-cell__bd">
					<p><t:provider packageName="acc" enumClassName="MoneyType" value="${accountDetail.moneyType}"/></p>
					<span style="font-size: 12px"> 
						<fmt:formatDate value="${accountDetail.time}" pattern="yyyy-MM-dd HH:mm:ss"/>
					</span>
				</div>
				<div class="weui-cell__ft">
					<input type="hidden" class="state" value="${accountDetail.state}" />
					<p style="font-size: 16px">
					<c:if test="${accountDetail.state == 'income'}">
					    <span id="plusMinus" >
					    +<fmt:formatNumber value="${accountDetail.money}" pattern="#.##" minFractionDigits="2" > </fmt:formatNumber>元	</span>
				    </c:if>
				    <c:if test="${accountDetail.state == 'pay'}"> 
					    <span id="plusMinus" >
					    -<fmt:formatNumber value="${accountDetail.money}" pattern="#.##" minFractionDigits="2" > </fmt:formatNumber>元	</span>
				    </c:if>
						
					</p>
				</div>
			</a>
		</c:forEach>
	</div> 
	<div class="weui-cells" style="margin-top:4em">
		<div class="weui-cell weui-tabbar">
			<div class="weui-cell__bd " style="font-size:16px">
				<p style="font-size:16px" >总收入</p>
				￥<fmt:formatNumber value="${incomeMoney}" pattern="#.##" minFractionDigits="2" > </fmt:formatNumber>元		
			</div>
			<div class="weui-cell__ft " style="font-size:16px;padding-right:25px">
				<p style="font-size:16px" >总支出</p>
				￥<fmt:formatNumber value="${expendMoney}" pattern="#.##" minFractionDigits="2" > </fmt:formatNumber>元
			</div>
		</div>
	</div>

<script type="text/javascript">

</script>	